package cn.kooki.app.duobao.ui.Activity.Comm;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.graphics.BitmapCompat;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import cn.kooki.app.duobao.R;
import cn.kooki.app.duobao.base.BaseNavActivity;
import cn.kooki.app.duobao.util.PackageUtils;

/**
 * Created by xionghao on 16/2/18.
 */
public class AboutActivity extends BaseNavActivity implements View.OnClickListener {
    @Bind(R.id.about_icon)
    ImageView aboutIcon;
    @Bind(R.id.about_text)
    TextView aboutText;
    @Bind(R.id.text_app_version)
    TextView textAppVersion;
    @Bind(R.id.about_link)
    TextView aboutLink;

    @Override
    public void setLayoutContainerView() {
        setContainerView(R.layout.activity_about);

        ButterKnife.bind(this);
    }

    @Override
    protected void afterView() {
        setTitle("关于去抢宝");
        String appVersionName = PackageUtils.getAppVersionName(this);
        textAppVersion.setText("版本号:Ver "+appVersionName);
        aboutLink.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (aboutLink == v){
            intent(WebViewActivity.class,"type",WebViewActivity.ABOUT_TYPE);
        }
    }
}
